|
|
|
|
|
|
|
Function parameters are passed by pushing them onto the stack before the function is called. |
|
|
|
|
|
|
|
|
Local variables are created by pushing them onto the stack after the function is called. |
|
|
|
|
|
|
|
|
If you are a C++ purist, you are quite possibly still upset with me because, you see, even after adding the BP register into the equation (a fact that you are welcome to forget from here on), the description of stack frames so far is still a simplification. We need to go into just a little more detail. The reward: a real understanding of the "Bad DLL Calling Convention Error." |
|
|
|
|
|
|
|
|
Figure T4-4a, T4-4b:
The BP register keeps track of local variables |
|
|
|
|
|